using System.ComponentModel;
using Skim.Ssms.AddIn.ActiveFileExplorer.Loader;

namespace Skim.Ssms.AddIn.ActiveFileExplorer
{
    internal class DisplayModeComboBoxItem : INotifyPropertyChanged
    {
        private string _DisplayText;
        private DocumentLoadType _DocumentLoadType;

        public string DisplayText
        {
            get { return _DisplayText; }
            set
            {
                _DisplayText = value;
                PropertyChanged(this, new PropertyChangedEventArgs("DisplayText"));
            }
        }

        public DocumentLoadType DocumentLoadType
        {
            get { return _DocumentLoadType; }
            set
            {
                _DocumentLoadType = value;
                PropertyChanged(this, new PropertyChangedEventArgs("DocumentLoadType"));
            }
        }

        public DisplayModeComboBoxItem(string displayText, DocumentLoadType documentLoadType)
        {
            DisplayText = displayText;
            DocumentLoadType = documentLoadType;
        }

        public event PropertyChangedEventHandler PropertyChanged = delegate {};
    }
}